package com.liu.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author liumiao
 * @create 2021-10-29-13:50
 */

@Data
@Builder
@TableName("ums_admin")
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class UmsAdmin implements Serializable {
        private static final long serialVersionUID = -5051120337175047163L;

        @TableId(value = "id", type = IdType.ASSIGN_ID)
        private String id;

        @TableField("username")
        private String username;

        @JsonIgnore()
        @TableField("password")
        private String password;

        @Builder.Default
        @TableField("avatar")
        private String avatar = "https://s3.ax1x.com/2020/12/01/DfHNo4.jpg";

        @TableField("phone")
        private String phone;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
}
